from odoo import api, models, fields
from odoo.tools import date_utils


class nbd_product_type(models.Model):
    _name = 'nbd.product.type'
    _description = '产品类型'

    name = fields.Char(string='产品类型名称')
    parent_id = fields.Many2one('nbd.product.type', string='产品类别父节点')
    child_ids = fields.One2many('nbd.product.type', 'parent_id', string='Child type')
    description = fields.Char(string='产品类别描述')
